package com.sanji.pay.sys.repository;

import com.sanji.pay.sys.domain.User;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by yangrd on 2017/7/14.
 */
public interface UserRepository extends CrudRepository<User, Long> {

    User findByLoginName(String loginName);

    List<User> findByRoleSet_roleType(String roleType);
}
